home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / BPNN133U.ZIP / CPARSER.H < prev    next >
Text File  |  1992-11-19  |  1KB  |  54 lines

  1. /*
  2. *-----------------------------------------------------------------------------
  3. *    file:    cparser.h
  4. *    desc:    simple command parser
  5. *    by:    patrick ko
  6. *    date:    22 aug 91
  7. *-----------------------------------------------------------------------------
  8. */
  9.  
  10. #define    CMD_NULL    0
  11.  
  12. typedef    struct    {
  13.     int    cmdno;
  14.     char    * cmdstr;
  15.     }       CMDTBL;
  16.  
  17. /*
  18. *    #define your own commands here starting from 1
  19. *    -* modifiable *-
  20. */
  21.  
  22. #define    CMD_DIMINPUT        1
  23. #define    CMD_DIMOUTPUT        2
  24. #define    CMD_DIMHIDDENY        3
  25. #define    CMD_DIMHIDDEN        4
  26. #define    CMD_TRAINFILE        5
  27. #define    CMD_TOTALPATT        6
  28. #define    CMD_DUMPFILE        7
  29. #define CMD_DUMPIN        8
  30. #define    CMD_RECOGFILE        9
  31. #define    CMD_OUTFILE        10
  32. #define    CMD_TRAINERR        11
  33. #define    CMD_TOLER        12
  34. #define    CMD_REPORT        13
  35. #define CMD_TIMER        14
  36. #define CMD_TDUMP        15
  37. #define    CMD_WPOS        16
  38. #define    CMD_WNEG        17
  39. #define    CMD_COMMENT        18
  40.  
  41. #ifdef    __TURBOC__
  42.  
  43. int    cmdsearch        (char *, char *);
  44. int    cmdinit            (int, char **);
  45. int     cmdget            (char *);
  46.  
  47. #else
  48.  
  49. int    cmdsearch        ( );
  50. int    cmdinit            ( );
  51. int     cmdget            ( );
  52.  
  53. #endif
  54.